package com.cloud.order.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 分布式事务测试(TradeLog) 实体类
*
* @author zhangxun
* @since 2020-08-24
*/
@Data
@TableName(value = "trade_log")
public class TradeLog implements Serializable {
    private static final long serialVersionUID=1L;
    /*** ID*/
    @TableId(type = IdType.AUTO)
    private Integer id;

    /*** 商品ID*/
    @TableField("goods_id")
    private Integer goodsId;

    /*** 商品名称*/
    @TableField("goods_name")
    private String goodsName;

    /*** 状态*/
    @TableField("status")
    private String status;

    /*** 创建时间*/
    @TableField("create_time")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}